Jon B Mårtensson %!s(int64=3) %!d(string=hai) anos
pai
achega
25877886e6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      FreeAPS/Sources/APS/APSManager.swift

+ 1 - 1
FreeAPS/Sources/APS/APSManager.swift

@@ -1192,7 +1192,7 @@ final class BaseAPSManager: APSManager, Injectable {
 
         storage.transaction { storage in
             storage.append(dailystat, to: file, uniqBy: \.createdAt)
-            var xduniqeEvents: [Statistics] = storage.retrieve(file, as: [Statistics].self)?
+            var uniqeEvents: [Statistics] = storage.retrieve(file, as: [Statistics].self)?
                 .filter { $0.createdAt.addingTimeInterval(24.hours.timeInterval) > Date() }
                 .sorted { $0.createdAt > $1.createdAt } ?? []